/**
 * @Author: Ruichen
 * @Date: 2024-11-15 09:50:42
 * @LastEditors: Ruichen
 * @LastEditTime: 2024-11-15 09:50:42
 * @Description: 路由
 */
import { createRouter, createWebHistory } from 'vue-router'

const staticRoutes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/Home/index.vue'),
    meta: {
      title: '首页'
    }
  }
]

const router = createRouter({
  history: createWebHistory(), // createWebHashHistory URL带#，createWebHistory URL不带#
  strict: true,
  routes: staticRoutes
  // scrollBehavior: () => ({ left: 0, top: 0 })
})

export default router
